import 'package:flutter/material.dart';
import 'package:super_study_language_tools/model/model_user_word.dart';

class WidgetUserWord extends StatefulWidget {
  WidgetUserWord({super.key,required this.w});

  ModelUserWord w;

  @override
  State<WidgetUserWord> createState() => _WidgetUserWordState();
}

class _WidgetUserWordState extends State<WidgetUserWord> {
  @override
  Widget build(BuildContext context)
  {
    return Container(
      height: 50,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [

          Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisAlignment: MainAxisAlignment.start,
            children: [
              Row(
                children: [Text(widget.w.word!)],
              )
              ,
              Row(
                children: [
                  Text("正确次数:${widget.w.inputRightQty}"),
                  Text("错误次数:${widget.w.inputWrongQty}")
                ],
              )
            ],
          ),
          Column(
            mainAxisAlignment: MainAxisAlignment.start,
            children: [
              TextButton(onPressed: (){}, child: Text("设置为忽略")),
              TextButton(onPressed: (){}, child: Text("删除")),
            ],
          )
        ],
      ),
    );
  }
}
